<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:blut="http://github.com/blutorange"
	xmlns:xi="http://www.xima.de/taglib/xfc"
	xmlns:p="http://primefaces.org/ui" xmlns:o="http://omnifaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	xmlns:pe="http://primefaces.org/ui/extensions"
	template="./template.xhtml">
	
	<ui:define name="monaco">
		<blut:monacoEditorFramed widgetVar="monaco" id="monaco"
			value="#{testBean.code}" width="100%" autoResize="true"
			basename="simple.js" directory="blutorange/examples"
			editorOptions="#{testBean.editorOptions}"
			style="flex-grow: 1;flex-basis: 0" height="auto"
			uiLanguage="#{testBean.uiLanguage}" extender="extender.js.xhtml?type=basic-true">
		</blut:monacoEditorFramed>
	</ui:define>
	
	<ui:define name="script">
		<script>
		window.testCase = function() {
			log("The following messages should be logged:");
			log("    [LocalStorageService] creating");
			log("    [LocalStorageService] get codelens/cache2");
			log("    [LocalStorageService] get suggest/memories/recentlyUsed");
			log("Enter something in the editor that trigger autocompletion; then select a suggestion (eg. $.ajax)");
			log("The message following message should be logged:");
			log("    [LocalStorageService] store suggest/memories/recentlyUsed");
        	log("---------------");
        };
	    </script>
	</ui:define>
</ui:composition>